//
//  TSZStatusButtomView.swift
//  微博天下
//  Created by Tsz on 15/10/13.
//  Copyright © 2015年 Tsz. All rights reserved.
//

import UIKit

class TSZStatusButtomView: UIView {
    
    //重写init方法
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
    }
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    //设置UI
    private func setupUI(){
        addSubview(relayButton)
        addSubview(commentButton)
        addSubview(likeButton)
        //自动布局
        ff_HorizontalTile([ commentButton, likeButton, relayButton], insets: UIEdgeInsetsZero)
    }
    //懒加载数据  
    //转发
    private lazy var relayButton: UIButton = UIButton(title: "转发", imageName: "timeline_icon_retweet")
    //评论
    private lazy var commentButton: UIButton = UIButton(title: "评论", imageName: "timeline_icon_comment", fontSize: 13, color: UIColor.purpleColor())
    //点赞
     private lazy var likeButton: UIButton = UIButton(title: "赞", imageName: "timeline_icon_unlike")
}
